<?php

use Illuminate\Support\Facades\Route;
/*
|--------------------------------------------------------------------------
| Web Routes
|--------------------------------------------------------------------------
|
| Here is where you can register web routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| contains the "web" middleware group. Now create something great!
|
*/
//首页
Route::get('/', function () {
    return view('welcome');
});
Route::view('/demo','demo',['name'=>'nihao']);
//测试
Route::get('index',[\App\Http\Controllers\IndexController::class,'index']);
Route::get('test/user/{id}',[\App\Http\Controllers\IndexController::class,'test']);